#include "detail.h"

Detail::Detail(QWidget *parent) : QWidget(parent)
{
    NationalLabel = new QLabel(tr("National:"));
    //新建国家/地址选择控件QComboBox，向该控件中添加三个可选项。
    NationalComboBox = new QComboBox;
    NationalComboBox->insertItem(0, tr("PRC"));
    NationalComboBox->insertItem(1, tr("UK"));
    NationalComboBox->insertItem(1, tr("USA"));
    ProvinceLabel = new QLabel(tr("Province:"));
    //新建省份选择控件QComboBox，向该控件中添加三个可选项。
    ProvinceComboBox = new QComboBox;
    ProvinceComboBox->insertItem(0, tr("JiangSu"));
    ProvinceComboBox->insertItem(0, tr("ShanDong"));
    ProvinceComboBox->insertItem(0, tr("ZheJiang"));
    CityLabel = new QLabel(tr("City:"));
    CityLineEdit = new QLineEdit;
    IntroductLabel = new QLabel(tr("Introduct:"));
    IntroductTextEdit = new QTextEdit;
    mainLayout = new QGridLayout(this);
    mainLayout->setMargin(15);
    mainLayout->setSpacing(10);
    mainLayout->addWidget(NationalLabel, 0, 0);
    mainLayout->addWidget(NationalComboBox, 0, 1);
    mainLayout->addWidget(ProvinceLabel, 1, 0);
    mainLayout->addWidget(ProvinceComboBox, 1, 1);
    mainLayout->addWidget(CityLabel, 2, 0);
    mainLayout->addWidget(CityLineEdit, 2, 1);
    mainLayout->addWidget(IntroductLabel, 3, 0);
    mainLayout->addWidget(IntroductTextEdit, 3, 1);

}
